<?php

namespace App\Modules\Crowd\Models;

use App\Exceptions\StandardException;
use App\Library\Lock;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Ramsey\Uuid\Uuid;

/**
 * Class Crowd
 * @package App\Modules\Crowd\Models
 * @property string $name
 * @property int $shop_id
 * @property array $cover
 * @property string $video
 * @property integer $display_price
 * @property int $price
 * @property string $description
 * @property string $status
 */
class CrowdGood extends Model
{
    const STATUS_ON = 'on';
    const STATUS_OFF = 'off';

    public static $showStatus = [
        self::STATUS_ON => "上架",
        self::STATUS_OFF => "下架",
    ];
    protected $fillable = [
        'shop_id',
        'name',
        'cover',
        'video',
        'display_price',
        'price',
        'description',
        'status',
    ];

    protected $casts = [
        'cover' => 'array',
    ];
}
